package day5.homewok;

import org.junit.Test;

public class HomeDemo {
	
	@Test
	public void test1() {
		Vehicle vehicle = new Vehicle(100, 23);
		vehicle.move();
		vehicle.speedUp(20);
		System.out.println(vehicle.getSpeed());
	}
	
	@Test
	public void test2() {
		Number number = new Number(3, 5);
		int result = number.add();
		System.out.println(result);
	}
	
	@Test
	public void test3() {
		Rectangle rectangle = new Rectangle(10, 20);
		double mianJi = rectangle.mianJi();
		System.out.println(mianJi);
	}
	
	@Test
	public void test4() {
		Point point = new Point(2, 4);
		point.movePoint(1, 2);
		System.out.println(point);
	}
}
